using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;   
using System.Data.Linq.Mapping;
using System.ComponentModel;

namespace MRSite.Entity  
{
    //规格项目表
     [Table(Name = "product_option")]
    public class ProductOption : Entity
    { 
		/// <summary>
		///
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; }

        /// <summary>
        /// 店铺id
        /// </summary>
        [Column(Name = "shopid"), DefaultValue(0)]
        public int shopid { get; set; }

		/// <summary>
		/// 产品ID
		/// </summary>
		[Column(Name = "product_id")]
		public int product_id{ get; set; } 

		/// <summary>
		///属性名称
		/// </summary>
        [Column(Name = "title")]
        public String title { get; set; } 

         /// <summary>
		/// 产品图片
		/// </summary>
        [Column(Name = "thumb")]
        public String thumb { get; set; } 

         

        ///// <summary>
        ///// 价格(不用)
        ///// </summary>
        //[Column(Name = "productprice")]
        //public Decimal productprice { get; set; }

        /// <summary>
        /// 销售价格
        /// </summary>
        [Column(Name = "sell_price")]
        public Decimal sell_price { get; set; }


        /// <summary>
        /// 市场价格
        /// </summary>
        [Column(Name = "marketprice")]
        public Decimal marketprice { get; set; }


        /// <summary>
        /// 成本价
        /// </summary>
        [Column(Name = "costprice")]
        public Decimal costprice { get; set; }

        
		/// <summary>
        ///库存
		/// </summary>
        [Column(Name = "stock")]
        public int stock { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        [Column(Name = "weight")]
        public Decimal weight { get; set; }

        /// <summary>
        /// 店铺设置的优惠红包
        /// </summary>
        [Column(Name = "hongbao")]
        public Decimal hongbao { get; set; }

        /// <summary>
        /// 店铺设置的赠送贡献值
        /// </summary>
        [Column(Name = "score")]
        public Decimal score { get; set; }

       /// <summary>
        /// 排序
		/// </summary>
        [Column(Name = "displayorder")]
        public int displayorder { get; set; }


        /// <summary>
        /// 规格值ID，用"_"隔开
        /// </summary>
        [Column(Name = "specs")]
        public String specs { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column(Name = "skuId")]
        public String skuId { get; set; } 

         
        /// <summary>
        /// 编码货号
        /// </summary>
        [Column(Name = "goodssn")]
        public String goodssn { get; set; }

        /// <summary>
        /// 产品条码
        /// </summary>
        [Column(Name = "productsn")]
        public String productsn { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column(Name = "virtuals")]
        public int virtuals { get; set; } 


         //后面的没用到
       

	 } 
}    


